def checkId(id):
    if(len(id)<8):
        if(id.isalpha()>0 or id.isdigit()>0 or id.index("_")>0):
                print("id输入正确")
        else:
            print("只能由数字、字母、下划线组成")
    else:
        print("Id长度不能超过8")


def checkEmail(email):
    if("@" in email):
        if(".com" in email):
            print("email输入正确")
    else:
        print("email输入有误")


def checkIde(ide):
    if(len(ide)==18 or ide.isdigit()==18):
        print("身份证输入有误")
    else:
        print("身份证输入正确")

def checkName(name):
    if (len(name) > 2 and len(name) < 4):
         for ch in name:
            if u'\u4e00' <= ch <= u'\u9fff':
                print("姓名输入正确")
            else:
                print("只能为中文")
    else:
        print("姓名不能超过4位")





id=input("请输入ID")
name=input("请输入姓名")
ide=input("请输入身份证")
email=input("请输入邮箱")
checkId(id)
checkEmail(email)
checkIde(ide)
checkName(name)